/**   
* @{#} AppHangYeRate.java Create on 2013-10-22 下午1:17:10   
*   
* Copyright (c) 2012 by Baidu.   
*/
package union.func;

import objtable.port.DbPort;

/**   
* @author <a href="mailto:zhangbo07@baidu.com">zhangbo07</a>  
* @version 1.0   
*/

public class AppHangYeRate extends DomainHangYeRate {

	public AppHangYeRate(DbPort db) {
		init(db, 1);
	}

	public double apphangyerate(int rootid, int subid, long value) {
		String key = rootid + "@" + subid;
		Stages s = hm.get(key);
		return s.queryRate(value);
	}

}
